package org.sol.app;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        Display display = new Display();
        Shell shell = new Shell(display);
        
        shell.setLayout(null);
        
        Text hello = new Text(shell, SWT.MULTI);
        shell.setSize(200,100);
        hello.setText("hello world\n\nasdf");
        hello.pack();
        
        Color color = new Color(Display.getCurrent(),255,255,255);
        shell.setBackground(color);
        
        shell.open();
        shell.setMaximized(true);
        
        while(!shell.isDisposed()) {
        	if(!display.readAndDispatch())
        		display.sleep();
        }
        display.dispose();
    }
}
